<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>未审核问答</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="../css/element.css">
    <link rel="stylesheet" href="../css/font.css">
    <link rel="stylesheet" href="../css/xadmin.css">
    <script src="../js/vue.js"></script>
    <script src="../js/element.js"></script>
    <script src="../js/axios.js"></script>
    <script src="../jss/requestjs.js"></script>
    <script src="../articlejs/wangEditor.min.js"></script>
    <script src="../userjs/user-list.js"></script>
    <script src="../js/jquery-3.5.1.min.js"></script>
    <script src="../lib/layui/layui.js" charset="utf-8"></script>
    <script src="../js/xadmin.js"></script>
    <script src="../js/common.js"></script>

</head>
<style>
    .el-table .warning-row {
        background: oldlace;
    }

    .el-table .success-row {
        background: #f0f9eb;
    }
    .el-select {
        /* display: inline-block; */
        /* position: relative; */
    }
</style>
<body>

<div class="x-nav">
      <span class="layui-breadcrumb">
        <a href="">首页</a>
        <a href="">演示</a>
        <a>
          <cite>导航元素</cite></a>
      </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
</div>
<div class="x-body" id="app">


    <el-table :data="userlist" style="width: 100%" >
        <el-table-column prop="uid" label="用户id"  align="center" min-width="6%">
        </el-table-column>
        <el-table-column prop="name" label="昵称"  align="center" min-width="6%">
        </el-table-column>
        <el-table-column prop="username" label="用户名"  align="center" min-width="6%">
        </el-table-column>
        <el-table-column prop="gender" label="性别"  align="center" min-width="6%">
        </el-table-column>
        <el-table-column prop="iphone" label="电话号码"  align="center" min-width="13%">
        </el-table-column>
        <el-table-column prop="email" label="邮箱"  align="center" min-width="13%" :show-overflow-tooltip="true">
        </el-table-column>
        <el-table-column prop="quizCount" label="提问总数"  align="center" min-width="6%">
        </el-table-column>
        <el-table-column prop="articleCount" label="文章总数"  align="center" min-width="6%">
        </el-table-column>
        <el-table-column prop="answerCount" label="回答总数"  align="center" min-width="6%">
        </el-table-column>
        <el-table-column prop="createTime" label="创建时间" align="center" min-width="10%">
            <template slot-scope="scope">
                {{scope.row.createTime | mytime }}
            </template>
        </el-table-column>
        <el-table-column prop="lastLoginTime" label="最后登入时间"  align="center" min-width="10%">
            <template slot-scope="scope">
                {{scope.row.lastLoginTime | mytime }}
            </template>
        </el-table-column>
        <el-table-column prop="state" label="状态" align="center" min-width="10%">
            <template slot-scope="scope">
               <!-- {{scope.row.state | mystate }}-->
                <el-switch
                        v-model="scope.row.state==1"
                        active-text="已启用"
                        inactive-text="禁用"
                        @change="updatemyswitch(scope.row)">
                </el-switch>
            </template>

        </el-table-column>

    </el-table>
    <div>
        <el-pagination background layout="prev, pager, next,sizes,total" :total="pagination.total" :page-size="pagination.pageSize"
                       :current-page="pagination.pageNum" @size-change="sizeChange" @current-change="findBlogPageList" >
        </el-pagination>
    </div>





</div>

<script>var _hmt = _hmt || []; (function() {
    var hm = document.createElement("script");
    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(hm, s);
})();</script>

</body>
</html>